package com.rocbrid.order.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用第三方的api接口
 */
@FeignClient(value = "weather-serive",url = "https://aliv18.data.moji.com")
public interface WeatherFeignClient {

    @PostMapping("/whapi/json/alicityweather/condition")
    String getWeather(@RequestParam("cityId") String cityId,
                    @RequestParam("token") String token,
                    @RequestHeader("Authorization") String Authorization);
}
